/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.shop.entity;

import com.thinkgem.jeesite.modules.sys.entity.User;
import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;
import com.thinkgem.jeesite.modules.sys.entity.UserBusiness;

/**
 * 商品信息Entity
 * @author 开发者
 * @version 2016-07-10
 */
public class BusinessProduct extends DataEntity<BusinessProduct> {
	
	private static final long serialVersionUID = 1L;
	private User business;		// 商家编号
	private String businessType;		// 商城
	private BusinessCategory category;		// 商品分类编号
	private String title;		// 标题
	private String price;		// 价格
	private String description;		// 描述
	private String sort;		// 排序
    private String introduce; //商品介绍
	private String image;		// 图片
	private String images;		// 图集
//    private String mobile;    //商家联系方式
	
	public BusinessProduct() {
		super();
	}

	public BusinessProduct(String id){
		super(id);
	}

	@Length(min=1, max=64, message="商家编号长度必须介于 1 和 64 之间")
	public User getBusiness() {
		return business;
	}

	public void setBusiness(User business) {
		this.business = business;
	}
	
	@Length(min=0, max=1, message="商城长度必须介于 0 和 1 之间")
	public String getBusinessType() {
		return businessType;
	}

	public void setBusinessType(String businessType) {
		this.businessType = businessType;
	}
	
	@Length(min=1, max=64, message="商品分类编号长度必须介于 1 和 64 之间")
	public BusinessCategory getCategory() {
		return category;
	}

	public void setCategory(BusinessCategory category) {
		this.category = category;
	}
	
	@Length(min=0, max=255, message="标题长度必须介于 0 和 255 之间")
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
	@Length(min=0, max=255, message="价格长度必须介于 0 和 255 之间")
	public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price;
	}
	
	@Length(min=0, max=255, message="描述长度必须介于 0 和 255 之间")
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	
	@Length(min=0, max=255, message="排序长度必须介于 0 和 255 之间")
	public String getSort() {
		return sort;
	}

	public void setSort(String sort) {
		this.sort = sort;
	}

    public String getIntroduce(){ return introduce; }

    public void setIntroduce(String introduce){ this.introduce = introduce; }
	
	@Length(min=0, max=255, message="图片长度必须介于 0 和 255 之间")
	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}
	
	@Length(min=0, max=6000, message="图集长度必须介于 0 和 6000 之间")
	public String getImages() {
		return images;
	}

	public void setImages(String images) {
		this.images = images;
	}

//    public String getMobile(){ return mobile; }
//
//    public void setMobile(String mobile){ this.mobile = mobile; }
	
}